<?php
class AttachmentsController extends AppController {

	public function beforeFilter() {
		parent::beforeFilter();
		$this->Auth->allow(array('delete'));
	}

    public function delete($id) {
		$this->autoRender = $this->layout = false;
        $this->Attachment->delete($id);
    }
}